home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / patch / ps3d.lha / 3.0dupdate / Install-PageStream3.0d < prev    next >
Text File  |  1994-12-04  |  9KB  |  220 lines

  1. ;PAGESTREAM 3.0d ONLINE UPDATE PATCH INSTALLATION SCRIPT
  2. ;COPYRIGHT ©1994 SOFT-LOGIK PUBLISHING CORPORATION
  3.  
  4. ;SEE IF PAGESTREAM3 AND SOFTLOGIK ARE ASSIGNED AND EVERYTHING EXISTS
  5. (set PGSdest (getassign "PageStream3" "a"))
  6. (set SLdest (getassign "SoftLogik" "a"))
  7. (if (OR (= PGSdest "") (= SLdest ""))
  8.     (abort "PageStream3: and/or SoftLogik: are not assigned. You must properly install PageStream3 before applying this update patch.")
  9. )
  10. (set @default-dest PGSdest)
  11.     (if (<> (exists "PageStream3:PageStream3") 1)
  12. (abort "PageStream3 is not in the PageStream3: directory. You must properly install PageStream3 before applying this update patch.")
  13. )
  14. (if (<> (exists "SoftLogik:Libs") 2)
  15.     (abort "The SoftLogik:Libs directory is missing. You must properly install PageStream3 before applying this update patch.")
  16. )
  17. (if (<> (exists "SoftLogik:Engines") 2)
  18.     (abort "The SoftLogik:Engines directory is missing. You must properly install PageStream3 before applying this update patch.")
  19. )
  20. (if (<> (exists "SoftLogik:Printers") 2)
  21.     (abort "The SoftLogik:Printers directory is missing. You must properly install PageStream3 before applying this update patch.")
  22. )
  23. (if (<> (exists "SoftLogik:Filters") 2)
  24.     (abort "The SoftLogik:Filters directory is missing. You must properly install PageStream3 before applying this update patch.")
  25. )
  26. (if (<> (exists "SoftLogik:Effects") 2)
  27.     (abort "The SoftLogik:Effects directory is missing. You must properly install PageStream3 before applying this update patch.")
  28. )
  29.  
  30. ;SEE WHAT THE USER WANTS TO INSTALL
  31. (set ALLflag 0)
  32. (set SMAflag 1)
  33.  
  34. (message "\n\nThis will update your hard drive installation of PageStream 3.0c to version 3.0d. It requires that PageStream 3.0c be installed on your hard drive first. If you have 3.0, 3.0a or 3.0b, and not 3.0c, you cannot use this patch---read the ReadMe.1st! file for other instructions.\n\nYour original PageStream3 disks will not be modified by this update.")
  35. (set install_mode
  36.     (askchoice
  37.         (prompt
  38.             "\nSelect an installation option.\n\nChoose `All' if you have a full PageStream3 installation. Choose `Smart' if you have a custom or minimum PageStream3 installation.\n")
  39.         (choices "All New and Improved 3.0d Files" "Smart Install")
  40.         (default 0)
  41.         (help
  42.             "Smart Install will check to see if a file exists before copying the new one to your hard drive. Thus, if you deleted the HP.printer driver because you didn't need it, the new one will not be installed.")
  43.     )
  44. )
  45.  
  46. ;COPY THE LHEX PROGRAM TO RAM:
  47. (copyfiles
  48.     (source "PageStream3Disk1:lhex")
  49.     (dest "ram:")
  50.     (nogauge)
  51. )
  52.  
  53. ;UPDATE LIBS
  54. (working "Installing Update Libraries...")
  55. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Libs x Libs.lha")
  56. (delete "Libs.LHA" (safe))
  57.  
  58. ;UPDATE ENGINES
  59. (working "Installing Updated Engines...")
  60. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x Engines.lha")
  61. (delete "Engines.LHA" (safe))
  62.  
  63. ;UPDATE PRINTER DRIVERS
  64. (working "Installing Updated Printer Drivers...")
  65. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/HP.printer"))
  66.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x HP.lha")
  67. )
  68. (delete "HP.LHA" (safe))
  69.  
  70. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/PostScript.printer"))
  71.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PostScript.lha")
  72. )
  73. (delete "PostScript.LHA" (safe))
  74.  
  75. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Preference.printer"))
  76.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Preference.lha")
  77. )
  78. (delete "Preference.LHA" (safe))
  79.  
  80. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Epson.printer"))
  81.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Epson.lha")
  82. )
  83. (delete "Epson.LHA" (safe))
  84.  
  85. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Fargo.printer"))
  86.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x Fargo.lha")
  87. )
  88. (delete "Fargo.LHA" (safe))
  89.  
  90. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/IFFILBM.printer"))
  91.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x ILBM.lha")
  92. )
  93. (delete "ILBM.LHA" (safe))
  94.  
  95. ;UPDATE FILTERS
  96. (working "Installing Updated Filters...")
  97. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Filters.lha")
  98. (delete "Filters.LHA" (safe))
  99.  
  100. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ArtExpression.gfilter"))
  101.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x ArtExp.lha")
  102. )
  103. (delete "ArtExp.LHA" (safe))
  104.  
  105. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PageStream2.dfilter"))
  106.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x PGS2.lha")
  107. )
  108. (delete "PGS2.LHA" (safe))
  109.  
  110. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProWrite.tfilter"))
  111.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x ProWrite.lha")
  112. )
  113. (delete "ProWrite.LHA" (safe))
  114.  
  115. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProPage.dfilter"))
  116.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x ProPage.lha")
  117. )
  118. (delete "ProPage.LHA" (safe))
  119.  
  120. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProDrawClip.gfilter"))
  121.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x ProDraw.lha")
  122. )
  123. (delete "ProDraw.LHA" (safe))
  124.  
  125. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/WordPerfect.tfilter"))
  126.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x WordPerfect.lha")
  127. )
  128. (delete "WordPerfect.LHA" (safe))
  129.  
  130. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/Wordworth.tfilter"))
  131.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Wordworth.lha")
  132. )
  133. (delete "Wordworth.LHA" (safe))
  134.  
  135. ;INSTALL TIPS
  136. (if (<> (exists "PageStream3:Help") 2) (makedir "PageStream3:Help" (infos)))
  137. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Tips.LHA")
  138. (delete "Tips.LHA" (safe))
  139.  
  140. ;INSTALL HELP
  141. (if (exists "PageStream3:Help/PGS.HEL")
  142.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Help.LHA")
  143. )
  144. (delete "Help.LHA" (safe))
  145.  
  146. ;UPDATE PAGESTREAM3
  147. (working "Patching PageStream 3.0c to 3.0d...\n\nThis will take about one to five minutes.")
  148. (run "ram:lhex >NIL: <NIL: -qfw=ram: x PGSpatch.LHA")
  149. (delete "PGSpatch.LHA" (safe))
  150. (run "spatch >NIL: <NIL: -oPageStream3:PageStream3.0d -pram:PageStream.pch PageStream3:PageStream3")
  151. (if (exists "PageStream3:PageStream3.0d")
  152.     (
  153.         (delete "PageStream3:PageStream3")
  154.         (rename "PageStream3:PageStream3.0d" "PageStream3:PageStream3")
  155.     )
  156.     (abort "Patch was not successful. Cause was probably lack of RAM, a bad disk, or an incorrect version of PageStream3.")
  157. )
  158. (delete "ram:PageStream.pch" (safe))
  159.  
  160. ;UPDATE MACROS
  161. (if (<> (exists "PageStream3:Macros") 2) (makedir "PageStream3:Macros" (infos)))
  162. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Macros x Macros.lha")
  163. (delete "Macros.LHA" (safe))
  164.  
  165. ;DELETE NASTY #####.PFB FILES
  166. (if (= (exists "PageStream3:Fonts/Intellifonts") 2)
  167.     (
  168.         (delete "PageStream3:Fonts/Intellifonts/91545.pfb" (safe))
  169.         (delete "PageStream3:Fonts/Intellifonts/91546.pfb" (safe))
  170.         (delete "PageStream3:Fonts/Intellifonts/91547.pfb" (safe))
  171.         (delete "PageStream3:Fonts/Intellifonts/91548.pfb" (safe))
  172.         (delete "PageStream3:Fonts/Intellifonts/93713.pfb" (safe))
  173.         (delete "PageStream3:Fonts/Intellifonts/93714.pfb" (safe))
  174.         (delete "PageStream3:Fonts/Intellifonts/93715.pfb" (safe))
  175.         (delete "PageStream3:Fonts/Intellifonts/93716.pfb" (safe))
  176.         (delete "PageStream3:Fonts/Intellifonts/93709.pfb" (safe))
  177.         (delete "PageStream3:Fonts/Intellifonts/93711.pfb" (safe))
  178.     )
  179. )
  180. (message "\nBefore using PageStream3.0d, you MUST check every directory containing Compugraphic Intellifonts used with PageStream3 and delete any #####.pfb files found there (where # is a digit, i.e., 91545.pfb). (All these files will have 5 digit filename prefixes.)\n\nThese files are generated by PageStream3 when printing to a PostScript printer, but their format has changed in 3.0d and the old files must be deleted.")
  181.  
  182. ;UPDATE ALL FONT PATHS
  183. (
  184.     (textfile
  185.         (dest "t:PageStream3.prefs")
  186.         (include "PageStream3:PageStream3.prefs")
  187.         (append "UPDATEFONTPATHS TRUE\n")
  188.         (safe)
  189.     )
  190.     (delete "PageStream3:PageStream3.prefs" (safe))
  191.     (copyfiles
  192.         (source "t:PageStream3.prefs")
  193.         (dest "PageStream3:")
  194.         (nogauge)
  195.     )
  196.     (delete "t:PageStream3.prefs" (safe))
  197. )
  198. (message "\nDo not start PageStream3 until AFTER you have deleted the #####.pfb files (if you have any). The next time you run PageStream3, all the font paths you have added to the program will be updated when the program is loaded. Don't worry that loading will take a fairly long time.\n\nThis will happen only the next time you run PageStream3.")
  199.  
  200. ;INSTALL README
  201. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  202. (delete "Read.LHA" (safe))
  203.  
  204. ;DISPLAY README (Try 3 different ways!)
  205. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  206. (delete "Read.LHA" (safe))
  207. (IF (> (run "Sys:Utilities/MultiView PageStream3:ReadMe.Now") 0)
  208.     (IF (> (run "Sys:Utilities/AmigaGuide PageStream3:ReadMe.Now") 0)
  209.         (run "More PageStream3:ReadMe.Now")
  210.     )
  211. )
  212.  
  213. ;REMOVE THE LHARC PROGRAM
  214. (delete "ram:lhex" (safe))
  215. (delete "spatch" (safe))
  216. (delete "Install-PageStream3.0d.info" (safe))
  217.  
  218. ;GEE, THAT WAS FUN
  219. (exit "PageStream 3.0d installed!")
  220.